home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 06 - 1990 / 06.06 Jun 90 / Timing Files / MakeFile next >
Encoding:
Makefile  |  1989-02-07  |  1.4 KB  |  66 lines  |  [TEXT/MPS ]

  1. # Default Make Rules for Modula-2
  2.  
  3. M2FLAGS  = -nocheck
  4. ASMFLAGS  =
  5.   
  6. # create symbol file from definition file
  7. .msym ƒ .def
  8.     modula2 {M2FLAGS} ∂
  9.         -output {Targ} ∂
  10.         {DepDir}{Default}.def
  11.  
  12. # create object file from implementation file
  13. .mod.o ƒ .mod
  14.     modula2 {M2FLAGS} ∂
  15.         -output {Targ} ∂
  16.         {DepDir}{Default}.mod
  17.   
  18. # create assembler source file from implementation file
  19. .mod.a ƒ .mod
  20.     modula2 {M2FLAGS} -machine ∂
  21.         -output {Targ} ∂
  22.         {DepDir}{Default}.mod
  23.   
  24. # create object file from assembler source file
  25. .mod.o ƒ .mod.a
  26.       asm {ASMFLAGS} ∂
  27.       "{DepDir}{Default}.mod.a -o {DepDir}{Default}.mod.o
  28.  
  29. # create object application from Modula-2 program source file
  30. . ƒ .mod
  31.     modula2 {M2FLAGS} ∂
  32.         {DepDir}{Default}.mod
  33.     link -c "MPS " -t "APPL" ∂
  34.         -o {TargDir}{Default} ∂
  35.         {DepDir}{Default}.mod.o ∂
  36.         "{M2libraries}"M2Lib.o ∂
  37.         "{Libraries}"ObjLib.o         # object library ∂
  38.         "{Libraries}"Runtime.o ∂
  39.         "{Libraries}"Interface.o ∂
  40.         "{Libraries}"ToolLibs.o
  41. #------------------------------------------------------
  42. # dependencies created by GenMake will be here appended:
  43. #
  44. #------------------------------------------------------
  45. "Test.MOD.o" ƒ ∂
  46.     "Test.MOD" ∂
  47.     "Timer.MSYM"
  48. "Timer.MSYM" ƒ ∂
  49.     "Timer.DEF"
  50. "Timer.a.o" ƒ ∂
  51.     "Timer.a"
  52. "Test" ƒ ∂
  53.     "Test.MOD.o" ∂
  54.     "Timer.a.o"
  55.     link     ∂
  56.         -o "Test" ∂
  57.         -c "MPS " ∂
  58.         -t "MPST" ∂
  59.         "Test.MOD.o" ∂
  60.         "Timer.a.o" ∂
  61.         "{M2Libraries}"M2Lib.o ∂
  62.         "{Libraries}"Runtime.o ∂
  63.         "{Libraries}"Interface.o ∂
  64.         -sg Main=Test,M2_MAIN_SEGMENT
  65.  
  66.